package cn.edu.csust.coursecard.dao.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 评论详细内容
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class CommentInfo {
    //评论id
    private Integer id;
    
    //评论人用户信息
    private UserInfo userInfo;
    
    //评论的内容
    private String content;
    
    private List<ReplyInfo> replyInfos;
    
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    
}
